import { defineStore } from 'pinia'

// 桌台信息
export const useTableStore = defineStore('table', {
	state: () => ({ 
		tableInfo:{}
	}),
	actions: {
		SetTableInfo(data) {
			this.tableInfo = data
			uni.setStorageSync('tableInfo', data)
		},
		GetTableInfo() {
			return uni.getStorageSync('tableInfo')
		}
	} 
})